<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
	<table id="noborder_table" width="100%" cellspacing="0" cellpadding="0">
  		<tr>
  			<td>
  				<label>货品货号<font color="red">*</font></label>
  				<s:textfield name="code" cssClass="input-medium" theme="simple" onblur="checkCode(this);"></s:textfield>
  				<s:hidden name="productid" value="%{id}"></s:hidden>
  			</td>
  			<td colspan="2" style="text-align:left">
  				<label>货品名称<font color="red">*</font></label>
  				<s:textfield name="name" cssClass="input-big" theme="simple"></s:textfield>
  			</td>
  		</tr>
  		<tr>
  			<td width="30%">
  				<label>货品类别<font color="red">*</font></label>
  				<s:if test="category==null">
  					<s:select list="%{categoryList}" listKey="id" listValue="name" theme="simple" 
  				name="categoryid" headerKey="" headerValue="请选择类别"></s:select>
  				</s:if><s:else>
  				<s:select list="%{categoryList}" listKey="id" listValue="name" theme="simple" 
  				name="categoryid" headerKey="%{category.id}" headerValue="%{category.name}"></s:select></s:else>
  			</td>
  			<td width="30%">
  				<label>计量单位:</label>
  				<s:textfield name="unit" cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  			<td width="30%">
  				<label>进货价:</label>
  				<s:textfield name="purchasePrice" cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  		</tr>
  		<tr>
  			<td>
  				<label>当前库存数量<font color="red">*</font></label>
  				<s:textfield name="curQuantity" cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  			<td>
  				<label>初始库存数量:</label>
  				<s:textfield name="initQuantity"  cssClass="input-medium" theme="simple"></s:textfield>
  			</td>　　
  			<td>
  				<label>零售价:</label>
  				<s:textfield name="retailPrice"  cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  		</tr>
  		<tr>
  			<td>
  				<label>最低库存数量:</label>
  				<s:textfield name="minQuantity"  cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  			<td>
  				<label>最高库存数量:</label>
  				<s:textfield name="maxQuantity"  cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  			<td>
  				<label>批发价:</label>
  				<s:textfield name="wholesalePrice"  cssClass="input-medium" theme="simple"></s:textfield>
  			</td>
  		</tr>
  		<tr>
  			<td colspan="3" style="text-align:left">
  				<label>备注:</label>
  				<s:textfield name="remark"  cssClass="input-big" theme="simple"></s:textfield>
  			</td>
  		</tr>
  		<tr>
  			<td colspan="2"></td>
  			<td>
  				<input type="submit"  value="确定" class="button" />
  				<input type="button" value="取消" class="button" onclick="closeDialog();"/>
  			</td>
  		</tr>
  	</table>
